package com.ruoyi.system.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class InitializationCityVo {
    @ApiModelProperty("区域编码")
    private Long code;
    @ApiModelProperty("区域名字")
    private String name;
    @ApiModelProperty("所属省市编码")
    private String provinceCode;
    @ApiModelProperty("县集合")
    private List<InitializationAreaVo> children;

    public InitializationCityVo(Long code, String name, String provinceCode) {
        this.code = code;
        this.name = name;
        this.provinceCode = provinceCode;
    }

}
